package com.wlzg.collectiontool.model.bean

import androidx.room.Entity
import androidx.room.PrimaryKey
import com.google.gson.annotations.SerializedName
import com.wlzg.collectiontool.util.DateUtil

@Entity(tableName = "psdaolu")
class PsDaolu {
    @PrimaryKey(autoGenerate = true)
    var daoluId: Long? = null

    @SerializedName("createBy")
    var createBy: String? = null

    @SerializedName("createTime")
    var createTime: String? = null

    @SerializedName("gcId")
    var gcId: String? = null

    var ssgcId: Long = 0

    var ssxmId: Long = 0

    @SerializedName("id")
    var id = 0
    var roadName = ""

    @SerializedName("locationcode")
    var locationcode: String? = null

    @SerializedName("sysOrgCode")
    var sysOrgCode: String? = null

    @SerializedName("updateBy")
    var updateBy: String? = null

    @SerializedName("updateTime")
    var updateTime: String? = null

    @SerializedName("districtId")
    var districtId: String? = null

    @SerializedName("districtName")
    var districtName: String? = null

    init {
        createTime= DateUtil.getCurData()
    }
    override fun toString(): String {
        return roadName.toString()
    }
}